<h1>Listing ratings</h1>

<table>
  <tr>
    <th>Comment</th>
    <th>Nottobechanged</th>
    <th>Tobechanged</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @ratings.each do |rating| %>
  <tr>
    <td><%= rating.comment %></td>
    <td><%= rating.notToBeChanged %></td>
    <td><%= rating.toBeChanged %></td>
    <td><%= link_to 'Show', rating %></td>
    <td><%= link_to 'Edit', edit_rating_path(rating) %></td>
    <td><%= link_to 'Destroy', rating, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Rating', new_rating_path %>
